<html>
<head>
    <title>a</title>
    <style>
@page {
  size: 100px 80px;
  margin: 0;
}
    </style>
</head>
<body>
before
<object type="image/barcode" style="width:50px;height:20px;"
        value="123"
        format="CODE_39"
        on-color="0xFF0000FF"
        off-color="0xFFFFFFFF">
</object>
after
</body>
</html>